from django.utils.deprecation import MiddlewareMixin


class middleware01(MiddlewareMixin):


    def process_request(self, request):
        print("Demo01____request请求")


    def process_response(self, request, response):
        print("Demo01____response")
        return response